<?php

use App\Topic;
use Faker\Generator as Faker;

$factory->define(Topic::class, function (Faker $faker) {
    $updated_time = $faker->dateTimeThisMonth();
    return [
        'title'=>$faker->sentence,
        'body'=>$faker->text,
        'created_at'=> $updated_time,
        'updated_at'=>$faker->dateTimeThisMonth($updated_time),
    ];
});
